package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.AfterSaleTarget;
import com.example.demo.entity.AfterSaleTarget2;
import com.example.demo.repository.AfterSaleTargetRepository2;
@Service
public class AfterSaleTargetService2 extends BaseService<AfterSaleTarget2, Integer>{
	@Autowired
	private AfterSaleTargetRepository2 r2;
	
	public List<AfterSaleTarget2> findByAftersaletarget(AfterSaleTarget sale1) {
		return r2.findByAftersaletarget(sale1);
	}

	public AfterSaleTarget2 findByMonthAndYears(Integer month, Integer years) {
		return r2.findByMonthAndYears(month,years);
	}

	public List<AfterSaleTarget2> findByAftersaletargetId(Integer id) {
		return r2.findByAftersaletargetId(id);	
	}

}
